package com.jzfai.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Created on 2019-08-16.
 *
 * @author jzfai
 */
@ApiModel(value="角色表",description="Role")
public class Role implements Serializable {
	@ApiModelProperty(value ="onComment",example="col comment fail",required =false,hidden = false)
	private Integer id;

	@ApiModelProperty(value ="onComment",example="col comment fail",required =false,hidden = false)
	private String title;

	@ApiModelProperty(value ="onComment",example="col comment fail",required =false,hidden = false)
	private String description;

	@ApiModelProperty(value ="onComment",example="col comment fail",required =false,hidden = false)
	private String status;

	@ApiModelProperty(value ="onComment",example="col comment fail",required =false,hidden = false)
	private Date addTime;

	@ApiModelProperty(value ="pageNum",example="1",required =false,hidden = false)
	private Integer pageNum;

	@ApiModelProperty(value ="pageSize",example="10",required =false,hidden = false)
	private Integer pageSize;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	public Integer getPageNum() {
		return pageNum;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public Role(){
	}
	public Role(Integer id,String title,String description,String status,Date addTime,Integer pageNum,Integer pageSize){
		this.id = id;

		this.title = title;

		this.description = description;

		this.status = status;

		this.addTime = addTime;

		this.pageNum = pageNum;

		this.pageSize = pageSize;
	}
	public String toString() {
	  return "Role{"+

		" , id="+id+'\n'+

		" , title="+title+'\n'+

		" , description="+description+'\n'+

		" , status="+status+'\n'+

		" , addTime="+addTime+'\n'+

		" , pageSize="+pageSize+'\n'+

		" , pageNum="+pageNum+'\n'+
	  '}';
	}
}
